<aside id="sidebar" class="four columns">
    <div class="padsidebar">
        <ul>
            <li class="widget-container">
                <h2 class="widget-title">搜索</h2>
                <form action="/" id="searchform" method="get">
                    <div class="bgsearch">
                        <input type="text" value="" id="s" name="Keywords">
                        <input type="submit" value="" class="searchbutton">
                    </div>
                </form>
            </li>
            <li class="widget-container">
                <h2 class="widget-title">分类</h2>
                <ul>
                    {{range  .Categories}}
                        <li><a href="/?CatId={{.Id}}">{{.Name}}</a></li>
                    {{end}}
                </ul>
            </li>
            <li class="widget-container">
                <h2 class="widget-title">热门文章</h2>
                <ul class="rp-widget">
                    {{range  .Recent}}
                    <li>
                        <div class="postimg"><img src="{{.Thumb}}" alt="" width="150rpx" height="70rpx"/></div>
                        <h3><a href="/article/{{.Id}}">{{.Title}}</a></h3>
                        <span class="smalldate">{{.CreatedAt.Format "Jan 02, 2006"}}</span>
                        <span class="clear"></span>
                    </li>
                    {{end}}
                </ul>
            </li>
        </ul>
    </div>
</aside>